package com.training;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

class MultipleCatch {
	public static void main(String args[]) {

		BufferedReader object = new BufferedReader(new InputStreamReader(System.in));

		System.out.print("Input:");

		try {
			Float b = Float.parseFloat(object.readLine());
			System.out.println(3/b);
		} 
		catch (ArithmeticException exc) 
		{
			System.out.println("Divisor was 0.");
		} 
		catch (ArrayIndexOutOfBoundsException exc2)
		{
			System.out.println("Missing argument.");
		} 
		catch (NumberFormatException e) 
		{
			System.out.println("Number");
		} 
		catch (IOException e) 
		{
			System.out.println("IO Exception");
		}
		finally{
			System.out.println("Inside Finally");
		}
	}
}

